<form class="sform" name="loginForm" method="post" action="{@account/dologin}" onsubmit="return checkLogin(this)">
<fieldset class="inline">
    <div class="field">
        <label>邮箱</label>
        <input type="text" name="email" id="email" class="textput" value="{#$user}" />
    </div>
    <div class="field">
        <label>密码</label>
        <input type="password" name="password" class="textput" />
    </div>
    <div class="field">
        <input type="checkbox" name="rem" value="1" /><span class="note">两周内自动登录</span>
        <input type="submit" value="登陆" class="bnt-mid" />
    </div>
</fieldset>
<input type="hidden" name="goto" id="goto" value="" />
</form>

<script type="text/javascript">
function checkLogin(form)
{
	if (form.email.value == '') {
		alert("请输入邮箱");
		form.email.focus();
		return false;
	}
	if (form.password.value == '') {
		alert("请输入密码");
		form.password.focus();
		return false;
	}
    return true;
}
</script>